let goods = [{
        id: 11,
        pid: 0,
        component: 'Main',
        path: '/goods',
        meta: {
            hidden: false,
            title: "商品管理",
            target: '',
            keepAlive: false,
            icon: "shake"
        },
        redirect: '/goods/index',
    },
    {
        id: 12,
        pid: 11,
        component: '/goods/index',
        path: '/goods/index',
        meta: {
            hidden: false,
            title: "商品列表",
            target: '',
            keepAlive: false,
        },
    }
]

const routers = [
    ...goods,
    {
        id: 1,
        pid: 0,
        component: 'Main',
        path: '/setting',
        meta: {
            hidden: false,
            title: "系统设置",
            target: '',
            keepAlive: false,
            icon: "setting"
        },
        redirect: '/setting/router',
    },
    {
        id: 2,
        pid: 1,
        path: '/setting/router',
        meta: {
            target: '',
            hidden: false, //在menu  是否隐藏
            title: "设置路由",
            keepAlive: false,
        },
        component: '/setting/router',
    },
    {
        id: 3,
        pid: 1,
        path: '/setting/setting',
        meta: {
            target: '',
            hidden: false, //在menu  是否隐藏
            title: "系统设置",
            keepAlive: false,
        },
        component: '/setting/setting',
    },
    {
        id: 4,
        pid: 3,
        path: '/setting/edit',
        target: '_self',
        hidden: true, //在menu  是否隐藏
        title: "系统设置",
        keepAlive: false,
        redirect: '',
        component: '/setting/edit',
    }

]


console.log(routers)





export default {
    code: 200,
    data: routers
}